<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:26:"./tpl/cn/show_contact.html";i:1536978233;s:51:"D:\phpstudy_pro\WWW\hsycmsv1\tpl\cn\index_head.html";i:1536655269;s:51:"D:\phpstudy_pro\WWW\hsycmsv1\tpl\cn\common_map.html";i:1536977574;s:51:"D:\phpstudy_pro\WWW\hsycmsv1\tpl\cn\index_foot.html";i:1536813414;}*/ ?>
<!DOCTYPE html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $site['webtitle']; ?></title>
<meta name="keywords" content="<?php echo $site['webkeywords']; ?>">
<meta name="description" content="<?php echo $site['webdescription']; ?>">
<link href="/tpl/cn/images/css/animate.min.css" rel="stylesheet" type="text/css">
<link href="/tpl/cn/images/css/style.css?v=<?php echo time(); ?>" rel="stylesheet" type="text/css">
<script src="/tpl/cn/images/js/jquery.js"></script>
<script src="/tpl/cn/images/js/teixiao.js"></script>
<script src="/tpl/cn/images/js/wow.min.js"></script>
</head>
<body>
<div class="headtop">
  <div class="wrap">
  <span class="fl">欢迎光临本网站！<img src="/tpl/cn/images/img/tel.png" alt="" /><?php echo $site['contact_400']; ?></span>
  <ul>
  <li><a href="##">设为首页</a></li>
  <li><a href="##">加入收藏</a></li>
  <li class="last"><a href="##">在线留言</a></li>
  </ul>
  </div>
</div>
<div class="headnav">
  <div class="wrap"> <a href="/"><img src="<?php echo $site['weblogo']; ?>" alt="<?php echo $site['contact_company']; ?>" class="logo" /></a>
    <ul>
      <li><a href="/" class="a1 <?php if($nid == 0): ?>on<?php endif; ?>" >首页</a></li>      
      <?php if(is_array($nav) || $nav instanceof \think\Collection || $nav instanceof \think\Paginator): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
      <li><a href="<?php echo $v['link']; ?>" class="a1 <?php if($v['id'] == $nid): ?>on<?php endif; ?>" ><?php echo $v['title']; ?></a></li>
      <?php endforeach; endif; else: echo "" ;endif; ?>
    </ul>
  </div>
</div>

<div class="topimg" style="background:url(<?php echo (isset($banner) && ($banner !== '')?$banner:'/tpl/cn/images/img/topimg.jpg'); ?>) no-repeat center top"></div>
<div class="about-con1">
  <div class="wrap"> <div class="clear"></div>
<style type="text/css">

.map{ background:#fff; border:1px solid #eee; padding:5px; height:auto; }

.map table,tr,td{box-sizing: content-box;}

#allmap {width: 100%;height:500px;overflow: hidden;margin:0;font-family:"微软雅黑"; }

#allmap img{max-width:none;}

</style>
<div class="map">
  <div id="allmap"></div>
</div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=0AhnqzMOO8ra47GayYcDwiIy"></script> 
<script type="text/javascript" src="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.js"></script>
<link rel="stylesheet" href="http://api.map.baidu.com/library/SearchInfoWindow/1.5/src/SearchInfoWindow_min.css" />
<script type="text/javascript">

  // 百度地图API功能

  var map = new BMap.Map("allmap");

  var point = new BMap.Point(<?php echo $site['contact_latlng']; ?>);

  map.centerAndZoom(point, 20);

  map.enableScrollWheelZoom();

  map.enableInertialDragging();

  var content = '<div style="padding:8px;line-height:22px;">地址：<?php echo $site['contact_address']; ?><br/>电话：<?php echo $site['contact_400']; ?></div>';  

  var searchInfoWindow = null;

  searchInfoWindow = new BMapLib.SearchInfoWindow(map, content, {

		  title  : "<?php echo $site['contact_company']; ?>",      //标题

		  width  : 290,             //宽度			

		  panel  : "panel",         //检索结果面板

		  enableAutoPan : true,     //自动平移

		  searchTypes   :[

			  BMAPLIB_TAB_SEARCH,   //周边检索

			  BMAPLIB_TAB_TO_HERE,  //到这里去

			  BMAPLIB_TAB_FROM_HERE //从这里出发

		  ]

  });

  var marker = new BMap.Marker(point); 	

  marker.enableDragging(); //marker可拖拽  

  marker.setAnimation(BMAP_ANIMATION_BOUNCE); //跳动的动画

  searchInfoWindow.open(marker);  //默认打开  

  map.addOverlay(marker); //在地图中添加marker    

</script> 
    <div class="pdbox"> <?php echo htmlspecialchars_decode($one['content']); ?> </div>
  </div>
</div>
<div class="about-con2">
  <div class="wrap">
    <div class="title">
      <p>C O U R S E</p>
      <p class="line"></p>
      <h2>在线留言</h2>
      </div>
    <div class="book">
    <form action="<?php echo url('Show/sendemail'); ?>" method="post" data-type="ajax">
      <p>
        <input type="text" name="company" class="intxt i1" placeholder="公司">
        <input type="text" class="intxt i2" name="job" placeholder="职位">
      </p>
      <p>
        <input type="text" name="name" class="intxt i1" placeholder="姓名">
        <input type="text" class="intxt i2" name="mobile" placeholder="手机">
      </p>
      <p>
        <input type="text" name="email" class="intxt i1" placeholder="邮箱">
        <input type="text" class="intxt i2" name="address" placeholder="地址">
      </p>
      <p>
        <textarea name="content" class="intxt te" placeholder="留言内容"></textarea>
      </p>
      <p>
        <input type="submit" value="提交" class="sbtn">
      </p>
    </form>
  </div>
  </div>
</div>
<script src="/public/layer/layer.js"></script> 
  <script>
$(document).on('submit','form[data-type=ajax]',function(){
	var url = $(this).attr('action');var data = $(this).serializeArray();
	if($("input[name=company]").val()==""){ layer.msg("请输入公司名称"); return false; }
	if($("input[name=job]").val()==""){ layer.msg("请输入职位"); return false; }
	if($("input[name=name]").val()==""){ layer.msg("请输入姓名"); return false; }
	if($("input[name=mobile]").val()==""){ layer.msg("请输入手机"); return false; }	
	var phoneReg = /(^1[3|4|5|7|8]\d{9}$)|(^09\d{8}$)/;	
	var phone = $.trim($("input[name=mobile]").val());
	if (!phoneReg.test(phone)) {
		layer.msg('手机号码格式错误');
		return false;
	} 
	if($("input[name=email]").val()==""){ layer.msg("请输入邮箱"); return false; }
	var myreg = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
    if(!myreg.test($("input[name=email]").val())){
		layer.msg('邮箱格式错误');		
	   return false;
    }	
	if($("textarea[name=content]").val()==""){ layer.msg("请输入内容"); return false; }
	$.post(url,data,function(res){		
		if(res.code == 1){ 
			layer.msg('提交成功'); 
			setTimeout(function(){			
				window.location.reload(); 
			},1500)
		}
	},"JSON");
	return false;
});
</script>
<div class="clear"></div>
<div class="footer">
  <div class="wrap">
    <div class="ewmbox">
      <p><img src="/tpl/cn/images/img/dblogo.png" alt="" /></p>
      <p class="p1"><img src="<?php echo $site['contact_ewm']; ?>" width="139" alt="" /></p>
      <p class="p2">扫一扫关注公众号</p>
    </div>
    <dl>
      <dt>网站导航<span>/Nav</span></dt>      
      <dd class="line"></dd>
      <dd><a href="/service/">服务项目</a></dd>
      <dd><a href="/case/">案例展示</a></dd> 
      <dd><a href="/about/">关于</a></dd>
      <dd><a href="/news/">新闻</a></dd>
      <dd><a href="/contact/">联系</a></dd>      
    </dl>
    <dl>
      <dt>帮助中心<span>/Help</span></dt>  
      <dd class="line"></dd>  
      <dd><a href="">服务流程</a></dd>
      <dd><a href="">技术支持</a></dd>
      <dd><a href="">售后服务</a></dd> 
      <dd><a href="">在线客服</a></dd> 
    </dl>
    <div class="companyevent">
     <h2>公司环境</h2>
     <p class="line"></p>
     <ul>
     <?php $test_arr=db("article")->where("nid = 1 and cid in (61)")->order("istop desc,sort desc,id desc")->limit("6")->select();$__LIST__ = $test_arr; if(is_array($__LIST__) || $__LIST__ instanceof \think\Collection || $__LIST__ instanceof \think\Paginator): $i = 0; $__LIST__ = $__LIST__;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
     <li><img src="<?php echo $vo['img']; ?>" alt="" /></li>
     <?php endforeach; endif; else: echo "" ;endif; ?>
     </ul>
    </div>
  </div>
  <div class="clear"></div>
  <div class="copyright">
    <div class="wrap"> <?php echo htmlspecialchars_decode($site['webcopyright']); ?><?php echo $site['webjs']; ?> </div>
  </div>
</div>
<!-- 客服 -->
<div class="yb_conct">
  <div class="yb_bar">
    <ul>
      <li class="yb_top">返回顶部</li>
      <li class="yb_phone"><?php echo $site['contact_400']; ?></li>
      <li class="yb_QQ"> <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=<?php echo $site['contact_qq']; ?>&amp;site=qq&amp;menu=yes&amp;from=message&amp;isappinstalled=0" title="即刻发送您的需求">在线咨询</a> </li>
      <li class="yb_ercode" style="height:53px;">微信二维码 <br>
        <img class="hd_qr" src="<?php echo $site['contact_ewm']; ?>" alt="关注你附近"> </li>
    </ul>
  </div>
</div>
<script>
 //下拉动画 	
  if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
	new WOW().init();
  };  
  $(function(){
	 var leftH = $(".left").height();
	 var rightH = $(".right").height()-200; 
	 if(rightH>leftH){
	   var leftop = $(".left").offset().top;
	   var windowHeight = $(window).height();
	   $(window).scroll(function(){	
	   	  var scrolltop = $(this).scrollTop();
	   	  console.log(windowHeight-scrolltop);
		  if(scrolltop >= leftop){
			  $(".left").addClass("fixd");
		  }else{			
			  $(".left").removeClass("fixd");
		  }
	   }) 
	 }
	 
  })
  $(function() {
	// 悬浮窗口
	$(".yb_conct").hover(function() {
		$(".yb_conct").css("right", "5px");
		$(".yb_bar .yb_ercode").css('height', '200px');
	}, function() {
		$(".yb_conct").css("right", "-127px");
		$(".yb_bar .yb_ercode").css('height', '53px');
	});
	// 返回顶部
	$(".yb_top").click(function() {
		$("html,body").animate({
			'scrollTop': '0px'
		}, 300)
	});
 });
</script> 
</body></html>